package repository.relsys.util.urigeneretor;

import repository.relsys.util.urigeneretor.UUIDBasedUriGenerator;



public class URIBuilder  {
	private UriGenerator uriGenerator;
	private static URIBuilder instance;

	public static URIBuilder instance() {
		if (instance == null)
			instance = new URIBuilder();
		return instance;
	}

	private URIBuilder() {
		uriGenerator = new UUIDBasedUriGenerator();
	}
	
	public String generateURI(Object instance, String namespace) {
		return uriGenerator.generateInstanceUri(instance, namespace);
	}
	
}
